<!DOCTYPE html>
<html>
<head lang="en">
	<script src="../../js/common.js"></script>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
	<title>点标记</title>
	<style>
		body,#mapContainer{
			margin:0;
			height:100%;
			width:100%;
			font-size:12px;
		}
	</style>
	<link rel="stylesheet" href="https://cache.amap.com/lbs/static/main.css?v=1.0" />
	<script src="https://cache.amap.com/lbs/static/es5.min.js"></script>
	<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.8&key=93e22b34db78a1c1fd467a663ee7592f&plugin=AMap.ToolBar"></script>
	<script>
        function init() {
            var longitude= GetUrlParam("longitude");
            var latitude= GetUrlParam("latitude");
            if(longitude==null||longitude=="")
            {
                longitude=106.941042
            }
            if(latitude==null||latitude=="")
            {
                latitude=27.707006
            }
            map = new AMap.Map("mapContainer", {
                zoom: 18,
                center:[longitude,latitude]
            });
            marker = new AMap.Marker({
                map:map,
                position:[longitude,latitude],
//                label: {
//                    offset: new AMap.Pixel(20, 20),//修改label相对于maker的位置
//
//                }
            })

            map.addControl(new AMap.ToolBar());
            if(AMap.UA.mobile){
                document.getElementById('button_group').style.display='none';
            }
        }
	</script>
</head>
<body onload="init()">
<div id="mapContainer" ></div>
<div class="button-group" id='button_group' style='top:15px;bottom:inherit'>

</div>
</body>
</html>